<?php
class Core_Model_Maildatacheckout implements Core_Model_Mainable {
	
	public $wrong_mail_message;
	
	public function __construct(){
		$this->wrong_mail_message = new Core_Data_Wrongmailmessage;
	}
	
	public function main(array $variables = null){
            $string = "\r\n";
		try {
			foreach ($variables as $key => $value){
				if(preg_match("/{$string}/i",$value)){
					throw new Exception($this->wrong_mail_message->main($variables));
				}
				else {
					return true;
				}
			}
		}
		catch (Exception $exception){
			echo $exception->getMessage();
		}
	}
	
}